package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户对象 jiajia_user
 *
 * @author knd
 * @date 2021-10-13
 */
public class JiajiaUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    @Schema(name = "姓名")
    private String name;

    /** 性别 1男 2女 */
    @Excel(name = "性别 1男 2女")
    @Schema(name = "性别 1男 2女")
    private Integer sex;

    /** 余额 */
    @Excel(name = "余额")
    @Schema(name = "余额")
    private BigDecimal money;

    /** 头像 */
    @Excel(name = "头像")
    @Schema(name = "头像")
    private String avatar;

    /** vip登记 */
    @Excel(name = "vip登记")
    @Schema(name = "vip登记")
    private Integer vip;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Schema(name = "添加时间")
    private Date addtime;

    /** 电话 */
    @Excel(name = "电话")
    @Schema(name = "电话")
    private String phone;

    /**是否可用 0可用 1不可用*/
    private Integer del;

    private String openId;

    /** 是否测试用户 0否 1是 */
    private Integer isTest;

    /**
     * 邀请人
     */
    @Schema(name = "邀请人")
    private String inviter;

    /**
     * 是否报名
     */
    @Schema(name = "是否报名")
    private Integer enroll;

    /**
     * 总积分
     */
    private Long integral;

    /**
     * 微信unionid
     */
    private String unionid;

    /**
     * app的openid
     */
    private String appOpenId;

    /**
     * 公众号openid
     */
    private String gzhOpenId;

    private String reference;

    private Long numberOfPeopleInTheGroup;

    public Long getNumberOfPeopleInTheGroup() {
        return numberOfPeopleInTheGroup;
    }

    public void setNumberOfPeopleInTheGroup(Long numberOfPeopleInTheGroup) {
        this.numberOfPeopleInTheGroup = numberOfPeopleInTheGroup;
    }

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public String getAppOpenId() {
        return appOpenId;
    }

    public void setAppOpenId(String appOpenId) {
        this.appOpenId = appOpenId;
    }

    public String getGzhOpenId() {
        return gzhOpenId;
    }

    public void setGzhOpenId(String gzhOpenId) {
        this.gzhOpenId = gzhOpenId;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public Long getIntegral() {
        return integral;
    }

    public void setIntegral(Long integral) {
        this.integral = integral;
    }

    public String getInviter() {
        return inviter;
    }

    public void setInviter(String inviter) {
        this.inviter = inviter;
    }

    public Integer getEnroll() {
        return enroll;
    }

    public void setEnroll(Integer enroll) {
        this.enroll = enroll;
    }

    /**
     * 所属区域id
     */
    private Long deptId;

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setSex(Integer sex)
    {
        this.sex = sex;
    }

    public Integer getSex()
    {
        return sex;
    }
    public void setMoney(BigDecimal money)
    {
        this.money = money;
    }

    public BigDecimal getMoney()
    {
        return money;
    }
    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getAvatar()
    {
        return avatar;
    }
    public void setVip(Integer vip)
    {
        this.vip = vip;
    }

    public Integer getVip()
    {
        return vip;
    }
    public void setAddtime(Date addtime)
    {
        this.addtime = addtime;
    }

    public Date getAddtime()
    {
        return addtime;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    public Integer getIsTest() {
        return isTest;
    }

    public void setIsTest(Integer isTest) {
        this.isTest = isTest;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("sex", getSex())
                .append("money", getMoney())
                .append("avatar", getAvatar())
                .append("vip", getVip())
                .append("addtime", getAddtime())
                .append("phone", getPhone())
                .append("inviter",getInviter())
                .append("enroll",getEnroll())
                .append("integral",getIntegral())
                .append("unionid",getUnionid())
                .append("appOpenId",getAppOpenId())
                .append("gzhOpenId",getGzhOpenId())
                .append("openId",getOpenId())
                .append("numberOfPeopleInTheGroup",getNumberOfPeopleInTheGroup())
                .toString();
    }
}
